home *** CD-ROM | disk | FTP | other *** search
- ;###############################
- ;# Example 1.1 - Misc Commands #
- ;###############################
- ;
- ;By Steven Matty
- ;
- ;This program tests out some of the other commands found in Func-Library
-
- WbToScreen 0
- ScreensBitMap 0,0
-
- Statement readconfig{}
- NPrint "Reading system configuration...."
- a$=Mid$(Hex$(Lisa),7,2)
- NPrint "You have a LISA ID of $"+a$
- NPrint ""
- Select a$
- Case "F8"
- NPrint "You have an AGA chipset!"
- Case "FC"
- NPrint "You have an ECS chipset!"
- Default
- NPrint "You have an Unkown/ECS chipset!"
- End Select
- NPrint ""
- NPrint "You have ",MemFree," bytes of RAM available..."
- VWait 50
- End Statement
-
- Statement readtimer{}
- NPrint ""
- NPrint "Hit The Mouse Button Now!"
- t.l=Timer
- MouseWait
- a.f=(Timer-t)/50
- a$=Str$(a.f)
- If Mid$(a$,1,1)="." Then a$="0"+a$
- NPrint "That Took You "+a$+" seconds to press the mouse button!"
- Repeat
- Until Joyb(0)=0
- VWait 50
- End Statement
-
- Statement dosfunctions{}
- NPrint "Making Directory Poo on Ram Disk:"
- success=MakeDir("Ram:Poo"+Chr$(0))
- If success
- NPrint "Okay!"
- Else
- NPrint "Oh no!"
- End If
-
- VWait 50
- NPrint "Renaming Ram Disk:Poo to Ram Disk:Ploppy"
- success=Rename("Ram:Poo","Ram:Ploppy")
- If success
- NPrint "Okay!"
- Else
- NPrint "Oh no!"
- End If
- VWait 50
-
- NPrint "The filesize of S:Startup-Sequence is ",FileSize("S:startup-sequence")
- VWait 50
-
- a$="HELLO THERE"
- b$="XXXXXXXXXXX"
- NPrint "a$=",a$
- VWait 30
- NPrint "b$=",b$
- VWait 30
- NPrint "and after I wave my magic wand..."
- VWait 60
- CopyByte &a$,&b$,Len(a$)
- NPrint "a$=",a$
- VWait 30
- NPrint "b$=",b$
- NPrint "And how pointless was that?"
- VWait 50
- End Statement
-
- Statement other{}
- NPrint "The larger of 50 and 60 is ",Max(50,60)
- NPrint "The smaller of 50 and 60 is ",Min(50,60)
- VWait 50
- End Statement
-
- readconfig{}
- readtimer{}
- dosfunctions{}
- other{}
- NPrint ""
- NPrint "And thats yer lot..."
- MouseWait
- End
-
-